package com.weibo.zhifa.servlet;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.log4j.Logger;

import com.weibo.common.ValidateUserServlet;

public class TaskAddServlet extends ValidateUserServlet {
	private static Logger logger = Logger.getLogger(TaskAddServlet.class);

	@Override
	public void doService(HttpServletRequest request,
			HttpServletResponse response) {
		logger.info("直发TaskAddServlet被请求了！");
		try {
			request.setAttribute("currentmenu", "任务管理");
			request.getRequestDispatcher("/WEB-INF/task/Task_add_straight.jsp").forward(request, response);
		} catch (ServletException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

}
